package com.git_taoxian_test2;

public class Movie {
//    私有成员变量
    private String name;
    private String actor;
    private String info;
    private double score;

//    构造方法
    public Movie() {
    }

    public Movie(String name, String actor, String info, double score) {
        this.name = name;
        this.actor = actor;
        this.info = info;
        this.score = score;
    }
//    set get方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Movie{" +
                "name='" + name + '\'' +
                ", actor='" + actor + '\'' +
                ", info='" + info + '\'' +
                ", score=" + score +
                '}';
    }
}
